import time
import numpy as np
from RA_Cal import ReflectArray_cal_FFT, Para_RA, MASK_rp, Costfunction, csvtest
import random

if __name__ == '__main__':
    import GA
    Costfunction_now = Costfunction.Costfunction_tt(400)

    for i in range(10):
        ga_test = GA.GA(fitness_func=Costfunction_now.CostFunction, n=952*1,
                        population_size=500, generations=1000, casei=0)
        optimized_code, optimized_result = ga_test.run()